package practice1_100;

import java.util.*;

public class Practice1418 {
    public List<List<String>> displayTable(List<List<String>> orders) {
        int size=orders.size();
        //统计实物
        HashMap<String,Integer> hashMap=new HashMap<>();
        //统计餐桌
        HashMap<String,Integer> hashMapTable=new HashMap<>();
        for(int a=0;a<size;a++){
              hashMap.put(orders.get(a).get(2),hashMap.getOrDefault(orders.get(a).get(2),0)+1);
//              hashMapTable.put(orders.get(a).get(1),);
        }
        Set<String> set= hashMap.keySet();
        List<String> headList=new LinkedList<>(set);
        Collections.sort(headList, new Comparator<String>() {
            @Override
            public int compare(String o1, String o2) {
                return o1.compareTo(o2);
            }
        });
        headList.add(0,"Table");

//        for(int ){
//
//        }


    return null;

    }
}
